package edu.sctu.practice.class01.fengleilin.test12;

/**
 * Created by fll on 2015/10/14.
 */
public class Car {
    public int tire;
    public String color;
    public int weight;

    public Car(int tire, String color, int weight) {
        this.color = color;
        this.tire = tire;
        this.weight = weight;
    }

    public void upSpeed(int speed1) {
        System.out.println("这辆颜色为：" + color + "\n轮胎有:" + tire + "个" + "\n重量为：" + weight + "吨的车正在加速，加了" + speed1);
    }

    public Car(int tire, String color) {
        this.color = color;
        this.tire = tire;
    }

    public void downSpeed(int speed2) {
        System.out.println("这辆颜色为：" + color + "\n轮胎有:" + tire + "个" + "的车正在减速，加了" + speed2);

    }

    public Car(String color, int weight) {
        this.color = color;
        this.weight = weight;
    }

    public void stopCar() {
        System.out.println("这辆颜色为：" + color + "\n重量为：" + weight + "吨的车已经停车了");
    }
}
